package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName replace_record
 */
@TableName(value ="replace_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReplaceRecord implements Serializable {
    /**
     * 更换物品记录编号
     */
    @TableId(value = "REPLACE_NOTE_ID", type = IdType.AUTO)
    private Integer replaceNoteId;

    /**
     * 更换物品编号
     */
    @TableField(value = "REPLACE_NO")
    private String replaceNo;

    /**
     * 更换物品名称
     */
    @TableField(value = "REPLACE_NAME")
    private String replaceName;

    /**
     * 被更换物品编号
     */
    @TableField(value = "COVER_REPLACE_NO")
    private String coverReplaceNo;

    /**
     * 被更换物品名称
     */
    @TableField(value = "COVER_REPLACE_NAME")
    private String coverReplaceName;

    /**
     * 更换申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "REPLACE_APPLY_TIME")
    private Date replaceApplyTime;

    /**
     * 更换时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "REPLACE_TIME")
    private Date replaceTime;

    /**
     *物品所属人
     */
    @TableField(value = "HIS_BELONGINGS")
    private String hisBelongings;

    /**
     *物品所属人联系方式
     */
    @TableField(value = "HIS_CONTACT")
    private String hisContact;

    /**
     * 更换申请人
     */
    @TableField(value = "REPLACE_APPLY_MAN")
    private String replaceApplyMan;

    /**
     * 更换人联系方式
     */
    @TableField(value = "REPLACE_CONTACT")
    private String replaceContact;

    /**
     * 更换物品后的金额
     */
    @TableField(value = "REPLACE_APPLY_SUM")
    private Double replaceApplySum;

    /**
     * 更换物品后的数量
     */
    @TableField(value = "REPLACE_APPLY_AMOUNT")
    private int replaceApplyAmount;

    /**
     * 更换物品金额
     */
    @TableField(value = "REPLACE_FRONT_SUM")
    private Double replaceFrontSum;

    /**
     * 更换物品数量
     */
    @TableField(value = "REPLACE_FRONT_AMOUNT")
    private int replaceFrontAmount;

    /**
     * 更换申请备注
     */
    @TableField(value = "REPLACE_APPLY_NOTES")
    private String replaceApplyNotes;

    /**
     * 更换人
     */
    @TableField(value = "REPLACE_AMN")
    private String replaceAmn;

    /**
     * 更换物品流程是否通过
     */
    @TableField(value = "PROCESS_WHETHER_ADOPT")
    private String processWhetherAdopt;

    /**
     * 更换申请状态
     */
    @TableField(value = "REPLACE_STATE")
    private String replaceState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;



}